<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MyISERN 2.0 - Sanity Report</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<link href="default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="ajax/prototype.js"></script>
<script type="text/javascript" src="ajax/common.js"></script>
<script type="text/javascript" src="ajax/actb.js"></script>
</head>

<body>

<div id="logo">
	<h1>Myisern</h1>
</div>

<%@ include file="menu.jsp" %>

<!-- end #menu -->



<div id="page">
    <div id="welcome" class="post">
    <div class="title">
      <h2 align="center"><span class="style8">Welcome to MyIsern!</span></h2>
    </div>
    
        <div class="post">
            <h1 class="title" align="center">Sanity Report</h1>
            <div class="entry">
				<br>
				<br>
				<br>
				<center>
					<table align="center" width="70%">
					  <tbody>
					  <stripes:form id="reportForm" action="/Report.action">
					  <table id="reportTable" border="1" align="center" CLASS="reporttable" cellpadding="5">
						<tr>
							<th id="researcherCell" colspan="2"><b>Invalid Organizations in Researchers&nbsp;&nbsp;</b></th>
							<c:forEach var="element" items="${actionBean.invalidOrganizationsInResearcher}">
							  <tr>
								  <td>
									<stripes:link href="/Researcher.action" event="linkToResearcher">${element.errorFrom}
									<stripes:param name="linkItem" value="${element.errorFrom}"/></stripes:link>
								  </td>
								  <td>
									<stripes:link href="/Organization.action" event="linkToOrganization">${element.errorAt}
									<stripes:param name="linkItem" value="${element.errorAt}"/></stripes:link>
									&nbsp;
									${element.errorMessage}
								  </td>
							  </tr>
							</c:forEach>
						</tr>       
				    <tr>
		            <th id="organizationCell" colspan="2"><b>Invalid Affiliated Researchers in Organizations&nbsp;&nbsp;</b></th>
		            <c:forEach var="element" items="${actionBean.invalidAffiliatedResearchersInOrganization}">
		              <tr>
		                  <td>
		                    <stripes:link href="/Organization.action" event="linkToOrganization">${element.errorFrom}
		                    <stripes:param name="linkItem" value="${element.errorFrom}"/></stripes:link>
		                  </td>
		                  <td>
		                    <stripes:link href="/Researcher.action" event="linkToResearcher">${element.errorAt}
		                    <stripes:param name="linkItem" value="${element.errorAt}"/></stripes:link>
		                    &nbsp;
		                    ${element.errorMessage}
		                  </td>
		              </tr>
		            </c:forEach>
		        </tr>     
						<tr>
							<th id="collaborationCell" colspan="2"><b>Invalid Collaborating Organizations in Collaborations&nbsp;&nbsp;</b></th>
							<c:forEach var="element" items="${actionBean.invalidOrganizationsInCollaboration}">
							  <tr>
								  <td>
									<stripes:link href="/Collaboration.action" event="linkToCollaboration">${element.errorFrom}
									<stripes:param name="linkItem" value="${element.errorFrom}"/></stripes:link>
								  </td>
								  <td>
									<stripes:link href="/Organization.action" event="linkToOrganization">${element.errorAt}
									<stripes:param name="linkItem" value="${element.errorAt}"/></stripes:link>
									&nbsp;
									${element.errorMessage}
								  </td>
							  </tr>
							</c:forEach>
						</tr>
						<tr>
							<th id="invalidYearCell" colspan="2"><b>Invalid Years in Collaborations&nbsp;&nbsp;</b></th>
							<c:forEach var="element" items="${actionBean.invalidYearsInCollaboration}">
							  <tr>
								  <td>
									<stripes:link href="/Collaboration.action" event="linkToCollaboration">${element.errorFrom}
									<stripes:param name="linkItem" value="${element.errorFrom}"/></stripes:link>
								  </td>
								  <td>
									<font color="red">${element.errorAt}</font>
									&nbsp;
									${element.errorMessage}
								  </td>
							  </tr>
							</c:forEach>
						</tr> 
						<tr>
							<th id="emptyOrganizationCell" colspan="2"><b>Empty Organization in Researchers&nbsp;&nbsp;</b></th>
							<c:forEach var="element" items="${actionBean.emptyOrganizationInResearcher}">
							  <tr>
								  <td>
									<stripes:link href="/Researcher.action" event="linkToResearcher">${element.errorFrom}
									<stripes:param name="linkItem" value="${element.errorFrom}"/></stripes:link>
								  </td>
								  <td>
									<font color="red">${element.errorAt}</font>
									&nbsp;
									${element.errorMessage}
								  </td>
							  </tr>
							</c:forEach>
						</tr>
						<tr>
							<th id="emptyAffiliatedRschCell" colspan="2"><b>Empty Affiliated Researchers in Organization&nbsp;&nbsp;</b></th>
							<c:forEach var="element" items="${actionBean.emptyAffiliatedResearchersInOrganization}">
							  <tr>
								  <td>
									<stripes:link href="/Organization.action" event="linkToOrganization">${element.errorFrom}
									<stripes:param name="linkItem" value="${element.errorFrom}"/></stripes:link>
								  </td>
								  <td>
									<font color="red">${element.errorAt}</font>
									&nbsp;
									${element.errorMessage}
								  </td>
							  </tr>
							</c:forEach>
						</tr>
						<tr>
							<th id="emptyCollaboratingOrgCell" colspan="2"><b>Empty Collaborating Organizations in Collaboration&nbsp;&nbsp;</b></th>
							<c:forEach var="element" items="${actionBean.emptyOrganizationsInCollaboration}">
							  <tr>
								  <td>
									<stripes:link href="/Collaboration.action" event="linkToCollaboration">${element.errorFrom}
									<stripes:param name="linkItem" value="${element.errorFrom}"/></stripes:link>
								  </td>
								  <td>
									<font color="red">${element.errorAt}</font>
									&nbsp;
									${element.errorMessage}
								  </td>
							  </tr>
							</c:forEach>
						</tr>
					  </table>
					</stripes:form>
					  </tbody>
				  </table>
				</center>
            </div>
            <p class="links">&nbsp;</p>
        </div>

    
    
    
    </div>
  </div>
		
    <!-- end #content -->
	<!-- end #sidebar -->
    
 <div id="extra" style="clear: both;">&nbsp;</div>
</div>


<!-- end #page -->

<div id="footer">
	<p id="legal"><span class="style6">Copyright &copy; 2007 Eclipse. All Rights Reserved.</span></p>
</div>


</body>
</html>
